import { Route } from 'react-keeper'

const PagePersonalInfo = require('./subpages/personalinfo');
const PageConfigPermission = require('./subpages/configpermission');
const PagePersonalWarnInfo = require('./subpages/personalinfo/subpages/warndetail');
const PageHome = {
    page: require('./PageHome'),
    route: () => {
        return (<div>
            <Route index path='/home' component={Home} />
        </div>)
    }

}
const Home = () => {
    return (
        <div>
            <Route index component={PageHome.page} />
            <Route name="个人信息详情页" path="/personalinfo" component={PagePersonalInfo} />
            <Route name="个人预警信息详情页" path="/personalwarnlinfo" component={PagePersonalWarnInfo} />
            <Route name="学生是否允许出校页" path="/configpermission" component={PageConfigPermission} />        
        </div>)
}

export default PageHome;
